package com.flea.hclv.constant;




public class Const {

//    public static final String CURRENT_USER="currentUser";
//    public static final String EMAIL="email";
    public static final String USERNAME="username";

    public static final String D_REGION = "D_REGION"; //字典类型


    public interface ProductStatus{
        String ON_SALE="Y";
        String UN_SALE="N";
    }

    public interface UserRole{
        String GUIDE="GUIDE";//导游
    }
    public enum SpotTicketTypeEnum{
        OTHER("D_SPOT_TICKET_TYPE_OTHER","其他票"),
        OLD("D_SPOT_TICKET_TYPE_OLD","老人票"),
        STUDENT("D_SPOT_TICKET_TYPE_STU","学生票"),
        ADULT("D_SPOT_TICKET_TYPE_ADULT","成人票"),
        CHILDREN("D_SPOT_TICKET_TYPE_CHILDREN","儿童票");

        private String value;

        public String getValue() {
            return value;
        }

        public String getCode() {
            return code;
        }

        private String code;
        SpotTicketTypeEnum(String code,String value){
            this.code=code;
            this.value=value;
        }
    }

    public enum GuideAuditStatusEnum{
        PASSED("D_AUDIT_STATUS_PASSED","审核通过"),
        NO_PASS("D_AUDIT_STATUS_NO_PASS","未审核通过"),
        UN_AUDIT("D_AUDIT_STATUS_UN_AUDIT","未审核");

        private String value;

        public String getValue() {
            return value;
        }

        public String getCode() {
            return code;
        }

        private String code;
        GuideAuditStatusEnum(String code,String value){
            this.code=code;
            this.value=value;
        }
    }

//    public interface Cart{
//        int CHECKED=1;//购物车选中状态
//        int UN_CHECKED=0;//购物车未选中状态
//
//        String LIMIT_NUM_FAIL="LIMIT_NUM_FAIL";
//        String LIMIT_NUM_SUCCESS="LIMIT_NUM_SUCCESS";
//    }
//    public interface ProductListOrderBy{
//        Set<String> PRICE_ASC_DESC= Sets.newHashSet("price_desc","price_asc");
//    }
//    public interface Role{
//        int ROLE_CUSTOMER=0;//普通用户
//        int ROLE_ADMIN=1;//管理员
//    }
//    public enum ProductStatusEnum{
//
//        ON_SALE(1,"在线");
//
//        private String value;
//        private int code;
//
//
//        ProductStatusEnum(int code, String value) {
//            this.value=value;
//            this.code=code;
//        }
//
//        public String getValue() {
//            return value;
//        }
//
//        public int getCode() {
//            return code;
//        }
//    }
    public enum PartnershipStatusEnum{
        ESTABLISHED("1","已建立"),
        NOT_ESTABLISHED("2","未建立"),
        LIFTED("3","已解除");

        private String value;

        public String getValue() {
            return value;
        }

        public String getCode() {
            return code;
        }

        private String code;
        PartnershipStatusEnum(String code,String value){
            this.code=code;
            this.value=value;
        }
    }
    public enum CertificatesTypeEnum{
        D_CERTIFICATES_ID("D_CERTIFICATES_ID","身份证"),
        D_CERTIFICATES_PASS("D_CERTIFICATES_PASS","通行证"),
        D_CERTIFICATES_PASSPORT("D_CERTIFICATES_PASSPORT","护照");
        private String value;

        public String getValue() {
            return value;
        }

        public String getCode() {
            return code;
        }

        private String code;
        CertificatesTypeEnum(String code,String value){
            this.code=code;
            this.value=value;
        }
    }
    public enum VisitorTypeEnum{
        D_VISITOR_TYPE_CHILDREN("D_VISITOR_TYPE_CHILDREN","儿童"),
        D_VISITOR_TYPE_ADULT("D_VISITOR_TYPE_ADULT","成人"),
        D_VISITOR_TYPE_OTHER("D_VISITOR_TYPE_OTHER","其他"),
        D_VISITOR_TYPE_OLD("D_VISITOR_TYPE_OLD","老人");
        private String value;

        public String getValue() {
            return value;
        }

        public String getCode() {
            return code;
        }

        private String code;
        VisitorTypeEnum(String code,String value){
            this.code=code;
            this.value=value;
        }
    }
//    public enum TourGroupStatusEnum{
//        COMPLETE("1","已成团"),
//        NOT_COMPLETE("2","未成团"),
//        OUT_OF_GROUP("3","已出团"),
//        COME_BACK_GROUP("4","已回团");
//        private String value;
//
//        public String getValue() {
//            return value;
//        }
//
//        public String getCode() {
//            return code;
//        }
//
//        private String code;
//        TourGroupStatusEnum(String code,String value){
//            this.code=code;
//            this.value=value;
//        }
//    }
//    public enum OrderStatusEnum{
//
//
//        CANCELED(0,"已取消"),
//        NO_PAY(10,"未支付"),
//        PAID(20,"已付款"),
//        ORDER_SUCCESS(30,"订单完成"),
//        ORDER_CLOSE(40,"订单关闭"),
//        BY_STAGES(50,"分期付款中");
//
//        private String value;
//
//        OrderStatusEnum(int code,String value){
//            this.code=code;
//            this.value=value;
//        }
//
//        public String getValue() {
//            return value;
//        }
//
//        public int getCode() {
//            return code;
//        }
//
//        private int code;
//
//        public static OrderStatusEnum codeOf(int code){
//            for (OrderStatusEnum orderStatusEnum:values()){
//                if (orderStatusEnum.getCode()==code){
//                    return orderStatusEnum;
//                }
//            }
//            throw new RuntimeException("没有找到对应的枚举");
//        }
//    }
//    public interface AlipayCallback{
//        String TRADE_STATUS_WAIT_BUYER_PAY="WAIT_BUYER_PAY";
//        String TRADE_STATUS_TRADE_SUCCESS="TRADE_SUCCESS";
//
//        String RESPONSE_SUCCESS="RESPONSE_SUCCESS";
//        String RESPONSE_FAILED="RESPONSE_FAILED";
//    }

//    public enum PayPlatformEnum{
//        ALIPAY("1","支付宝"),
//        WECHAT("2","微信");
//        private String value;
//
//        PayPlatformEnum(String code,String value){
//            this.code=code;
//            this.value=value;
//        }
//
//        public String getValue() {
//            return value;
//        }
//
//        public String getCode() {
//            return code;
//        }
//
//        private String code;
//    }
    public enum CustomerStatusEnum{
        D_CUSTOMER_STATUS_STOP("D_CUSTOMER_STATUS_STOP","已停用"),
        D_CUSTOMER_STATUS_NO_PAY("D_CUSTOMER_STATUS_NO_PAY","未缴费"),
        D_CUSTOMER_STATUS_PAY("D_CUSTOMER_STATUS_PAY","已缴费"),
        D_CUSTOMER_STATUS_NO_MONEY("D_CUSTOMER_STATUS_NO_MONEY","已欠费");
        private String value;

        CustomerStatusEnum(String code,String value){
            this.code=code;
            this.value=value;
        }

        public String getValue() {
            return value;
        }

        public String getCode() {
            return code;
        }

        private String code;
    }
//    public enum PaymentTypeEnum{
//        ONLINE_PAY(1,"在线支付"),
//
//        UNDERLINE_PAY(2,"线下支付");
//
//        private String value;
//
//        PaymentTypeEnum(int code,String value){
//            this.code=code;
//            this.value=value;
//        }
//
//        public String getValue() {
//            return value;
//        }
//
//        public int getCode() {
//            return code;
//        }
//
//        private int code;
//
//        public static PaymentTypeEnum codeOf(int code){
//            for (PaymentTypeEnum paymentTypeEnum:values()){
//                if (paymentTypeEnum.getCode()==code){
//                    return paymentTypeEnum;
//                }
//            }
//            throw new RuntimeException("没有找到对应的枚举");
//        }
//    }
}
